<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2019/4/30
  Time: 10:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="common.jsp"%>
<html>
<head>
    <title>activiti 在线编辑</title>
</head>
<body>

<h2>
    <a href='${ctx}/activiti/create?name=activiti&key=123456'>绘制流程</a>
</h2>
<div>
    <table width="100%">
        <tr>
            <td width="10%">模型编号</td>
            <td width="10%">版本</td>
            <td width="20%">模型名称</td>
            <td width="20%">模型key</td>
            <td width="40%">操作</td>
        </tr>
       <c:forEach var="model" items="${lists}">
        <tr>
            <td width="10%">${model.id}</td>
            <td width="10%">${model.version}</td>
            <td width="20%"><c:if test="${model.name !=''}">${model.name}</c:if></td>
            <td width="20%"><c:if test="${model.key !=''}">${model.key}</c:if></td>
            <td width="40%">
                <a href="${ctx}/modeler/modeler.html?modelId=${model.id}">编辑</a>
                <a href="${ctx}/activiti/deplayProc?modelId=${model.id}">发布</a>
                <a href="${ctx}/activiti/delProc?modelId=${model.id}">删除</a>
            </td>
        </tr>
       </c:forEach>
    </table>
</div>

</body>
</html>
